'use strict';
module.exports = app => {
  const { STRING } = app.Sequelize;
    return app.model.define(
      'pvForecastRel',
      {
          code: {type: STRING, primaryKey: true, autoIncrement: false},
          value: STRING(255),
          description: STRING(255),
          unit: STRING(255)
      },
      {
          tableName: 'pv_forecast_rel',
          timestamps: true, // 启用时间戳(createdAt, updatedAt)
          updatedAt: false, // 不想要 updatedAt
          createdAt: false, // 想要  createdAt 但是希望名称叫做 created_at
      }
  );
};
